/**
 * Generate time : 2011-12-15 10:34:10
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCEStandredEquipment table comment : 标准设备
 */
public class ZMCEStandredEquipment extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdName = " "; /* 名称 */
	private String fdSpecifications = " "; /* 规格 */
	private String fdModel = " "; /* 型号 */
	private String fdEquipmentClassCode = " "; /* 设备分类编码 */
	private String fdEquipmentClassName = " "; /* 设备分类名称 */
	private String fdEquipmentClassId = " "; /* 设备分类ID */
	private String fdToencode = " "; /* 设备内码 */
	private String fdRemarks = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSpecifications");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("规格");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModel");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("型号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentClassId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("设备分类ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentClassCode");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("设备分类编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentClassName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("设备分类名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdToencode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("设备内码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCEStandredEquipment() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdName - 名称
	 * 
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}

	/**
	 * set the fdName - 名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}

	/**
	 * get the fdSpecifications - 规格
	 * 
	 * @return the fdSpecifications
	 */
	public String getFdSpecifications() {
		return this.fdSpecifications;
	}

	/**
	 * set the fdSpecifications - 规格
	 */
	public void setFdSpecifications(String fdSpecifications) {
		this.fdSpecifications = fdSpecifications;
	}

	/**
	 * get the fdModel - 型号
	 * 
	 * @return the fdModel
	 */
	public String getFdModel() {
		return this.fdModel;
	}

	/**
	 * set the fdModel - 型号
	 */
	public void setFdModel(String fdModel) {
		this.fdModel = fdModel;
	}

	/**
	 * get the fdEquipmentClassId - 设备分类ID
	 * 
	 * @return the fdEquipmentClassId
	 */
	public String getFdEquipmentClassId() {
		return this.fdEquipmentClassId;
	}

	/**
	 * set the fdEquipmentClassId - 设备分类ID
	 */
	public void setFdEquipmentClassId(String fdEquipmentClassId) {
		this.fdEquipmentClassId = fdEquipmentClassId;
	}

	/**
	 * get the fdCode - 设备分类编号
	 * 
	 * @return the fdCode
	 */
	public String getFdEquipmentClassCode() {
		return this.fdEquipmentClassCode;
	}

	/**
	 * set the fdCode - 设备分类编号
	 */
	public void setFdEquipmentClassCode(String fdEquipmentClassCode) {
		this.fdEquipmentClassCode = fdEquipmentClassCode;
	}

	/**
	 * get the fdName - 设备分类名称
	 * 
	 * @return the fdName
	 */
	public String getFdEquipmentClassName() {
		return this.fdName;
	}

	/**
	 * set the fdName - 设备分类名称
	 */
	public void setFdEquipmentClassName(String fdEquipmentClassName) {
		this.fdEquipmentClassName = fdEquipmentClassName;
	}

	/**
	 * get the fdToencode - 设备内码
	 * 
	 * @return the fdToencode
	 */
	public String getFdToencode() {
		return this.fdToencode;
	}

	/**
	 * set the fdToencode - 设备内码
	 */
	public void setFdToencode(String fdToencode) {
		this.fdToencode = fdToencode;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdSpecifications(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecifications")), fdSpecifications));
		setFdModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModel")), fdModel));
		setFdEquipmentClassId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentClassId")), fdEquipmentClassId));
		setFdEquipmentClassCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentClassCode")), fdEquipmentClassCode));
		setFdEquipmentClassName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentClassName")), fdEquipmentClassName));
		setFdToencode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdToencode")), fdToencode));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdName", StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
		map.put("fdSpecifications", StringUtils.toString(fdSpecifications, eiMetadata.getMeta("fdSpecifications")));
		map.put("fdModel", StringUtils.toString(fdModel, eiMetadata.getMeta("fdModel")));
		map.put("fdEquipmentClassId", StringUtils.toString(fdEquipmentClassId, eiMetadata.getMeta("fdEquipmentClassId")));
		map.put("fdEquipmentClassCode", StringUtils.toString(fdEquipmentClassCode, eiMetadata.getMeta("fdEquipmentClassCode")));
		map.put("fdEquipmentClassName", StringUtils.toString(fdEquipmentClassName, eiMetadata.getMeta("fdEquipmentClassName")));
		map.put("fdToencode", StringUtils.toString(fdToencode, eiMetadata.getMeta("fdToencode")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));

		return map;

	}
}